from django.urls import path
from .views import UpdateMenuView, DeleteMenuView, MenuListView, CreateMenuView, UpdateMenuVisibleView, GetMenuFormView, \
    MenuRoutesView, MenuDetailView, MenuOptionsView

urlpatterns = [
    path('menus/<int:id>', UpdateMenuView.as_view(), name='menu-update'),
    path('menus1/<str:id>', DeleteMenuView.as_view(), name='menu-delete'),
    path('menus', MenuListView.as_view(), name='menu-list'),
    path('menus1', CreateMenuView.as_view(), name='create_menu'),
    path('menus2/<int:menuId>', UpdateMenuVisibleView.as_view(), name='update_menu_visible'),
    path('menus/<int:id>/form', GetMenuFormView.as_view(), name='menu_form'),
    path('menus/routes', MenuRoutesView.as_view(), name='menu_routes'),
    path('menus3/<int:id>', MenuDetailView.as_view(), name='menu_detail'),
    path('menus/options', MenuOptionsView.as_view(), name='menu_options'),

]
